package com.kinghood.productcenter.common.api.authority.fallback;


import com.kinghood.infrastructure.api.authority.UserRemoteVo;
import com.kinghood.infrastructure.model.KingHoodResponseVO;
import com.kinghood.productcenter.common.api.authority.UserRemote;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2023-12-12 15:35
 **/
@Component
public class UserRemoteFallback implements UserRemote {

    @Override
    public Map<Long, UserRemoteVo> getUserByIds(@RequestParam("ids") List<Long> ids) {
        return null;
    }

    @Override
    public List<Long> getIdListByNameOrAccount(String key) {
        return null;
    }

    /**
     * 用户菜单列表
     *
     * @param userId 用户id
     * @return @return {@link KingHoodResponseVO }<{@link List }>
     * @author jp
     * @date 2024/01/15 14:20
     */
    @Override
    public KingHoodResponseVO<List> userMenuList(Long userId) {
        return KingHoodResponseVO.fallback();
    }
}
